package com.mtw.bbs.article.mapper;




import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mtw.bbs.article.pojo.entity.TopicInfo;
import jakarta.validation.constraints.NotNull;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 话题信息
 */
@Repository
public interface TopicInfoMapper extends BaseMapper<TopicInfo> {


    /**
     * 更新话题成员数量
     * @param number            变化量
     * @param id                 话题id
     */
    int updateMemberCount(@NotNull @Param("number") Integer number,@NotNull @Param("id") String id);


}
